﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Travel.Web.wb_users
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					string id= strid;
					ShowInfo(id);
				}
			}
		}
		
	private void ShowInfo(string id)
	{
		Travel.BLL.wb_users bll=new Travel.BLL.wb_users();
		Travel.Model.wb_users model=bll.GetModel(id);
		this.lblid.Text=model.id;
		this.lblusername.Text=model.username;
		this.lblpwd.Text=model.pwd;
		this.lblrealname.Text=model.realname;
		this.lbluser_type.Text=model.user_type.ToString();
		this.lblqq.Text=model.qq;
		this.lblemail.Text=model.email;
		this.lblphone.Text=model.phone;
		this.lblreg_time.Text=model.reg_time.ToString();
		this.lbllast_log_time.Text=model.last_log_time.ToString();
		this.lbllast_log_ip.Text=model.last_log_ip;
		this.lbluser_status.Text=model.user_status.ToString();

	}


    }
}
